package com.love.marriage.eventRegistrationInfo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.love.marriage.common.interfaces.permission.DataPermission;
import com.love.marriage.eventRegistrationInfo.entity.EventRegistrationInfo;
import com.love.marriage.eventRegistrationInfo.vo.EventRegistrationInfoVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * description:  活动报名表 mapper
 * author:       alex
 * createDate:   2024-10-15 04:29:12
 * version:      1.0.0
 */
@Mapper
public interface EventRegistrationInfoMapper extends BaseMapper<EventRegistrationInfo> {

    @DataPermission(table = "event_registration_info_t")
    Page<EventRegistrationInfoVo> getPage(Page<EventRegistrationInfoVo> page, @Param("eventRegistrationInfoVo") EventRegistrationInfoVo eventRegistrationInfoVo);

    List<EventRegistrationInfoVo> getList(@Param("eventRegistrationInfoVo") EventRegistrationInfoVo eventRegistrationInfoVo);

    EventRegistrationInfoVo queryEventRegistrationInfo(@Param("id") Long id);
}
